import * as types from '../mutation-types'
const state = {
     tipShow:false,
     baseData:{isLogin:true,hasFav:true},
}
const getters = {
  baseData:state=>state.baseData,
}

const actions = {
  setBaseDate({ commit, state }, payload) {
    commit(types.BASE_DATA, payload);
  },

}

const mutations = {
  [types.BASE_DATA](state, payload) {
    state.baseData=payload
  },

}
export default { state, getters, actions, mutations }